home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
menuman.zip
/
MENU1-9.BAS
< prev
next >
Wrap
BASIC Source File
|
1992-04-06
|
19KB
|
624 lines
' MENUMAN program for menu making with numbers
DECLARE SUB Boxstuff ()
DECLARE SUB Directions ()
DECLARE SUB Disksave ()
DECLARE SUB Killer ()
DECLARE SUB Labeler ()
DECLARE SUB Lines1 ()
DECLARE SUB Lines2 ()
DECLARE SUB Lines3 ()
DECLARE SUB Lines4 ()
DECLARE SUB Lines5 ()
DECLARE SUB Lines6 ()
DECLARE SUB Lines7 ()
DECLARE SUB Lines8 ()
DECLARE SUB Menulines ()
DECLARE SUB Namer ()
DECLARE SUB NumberDo ()
DECLARE SUB Opener ()
DECLARE SUB Save1 ()
DECLARE SUB Save2 ()
DECLARE SUB Save3 ()
DECLARE SUB Save4 ()
DECLARE SUB Save5 ()
DECLARE SUB Save6 ()
DECLARE SUB Save7 ()
DECLARE SUB Save8 ()
DECLARE SUB TopLine ()
DECLARE FUNCTION Handler ()
DIM sign$(16)
CLS
sign$(1) = STRING$(80, 223)
sign$(2) = " ╔═══╗ ╔═══╗"
sign$(3) = " ║ ║ ║ ║"
sign$(4) = " ║ ║ ║ ║"
sign$(5) = " ║ ║ ║ ║"
sign$(6) = " ║ ║ ║ ║"
sign$(7) = " ║ ║ ║ ║"
sign$(8) = " ║ ╚════╝ ║"
sign$(9) = " ║ ║ ╔══════ ╔═╗ ║ ║ ║ ╔══╗ ╔══╗ ╔════╗ ╔═╗ ║"
sign$(10) = " ║ ║ ║ ║ ╚═╗ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ╚═╗ ║"
sign$(11) = " ║ ║ ║ ║ ╚═╗ ║ ║ ║ ║ ╚══╝ ║ ║ ║ ║ ╚═╗ ║"
sign$(12) = " ║ ║ ║════ ║ ╚═╗ ║ ║ ║ ║ ║ ║════║ ║ ╚═╗ ║"
sign$(13) = " ║ ║ ║ ║ ╚═║ ║ ║ ║ ║ ║ ║ ║ ╚═║"
sign$(14) = " ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║"
sign$(15) = " ║ ║ ╚══════ ║ ║ ╚═══════╝ ║ ║ ║ ║ ║ ║"
sign$(16) = STRING$(80, 220)
FOR SET = 1 TO 16
LOCATE SET + 3, 1: PRINT sign$(SET)
NEXT
LOCATE 7, 30: COLOR 0, 15: PRINT " S E L E C T I O N B Y N U M B E R S ": COLOR 15, 0
SLEEP 20
Opener
Handler:
SELECT CASE ERR
CASE 53
OPEN "TESTMENU.BAS" FOR APPEND AS #1
CLOSE #1
Opener
CASE ELSE
ON ERROR GOTO 0
END SELECT
SUB Boxstuff
Top:
CLS
PRINT "╔"; STRING$(78, 205); "╗"
PRINT "║"; SPACE$(78); "║"
PRINT "╚"; STRING$(78, 205); "╝"
LOCATE 2, 25: COLOR 15, 0: PRINT "M E N U M A N B O X S T Y L E S": COLOR 10, 0
REDIM Open$(16)
Open$(1) = "╔════════════╗ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ÖÖÖÖÖÖÖÖÖÖÖÖÖÖ"
Open$(2) = "║ ║ █ █ Ö Ö"
Open$(3) = "║ ║ █ █ Ö Ö"
Open$(4) = "║ ║ █ █ Ö Ö"
Open$(5) = "║ ║ █ █ Ö Ö"
Open$(6) = "║ ║ █ █ Ö Ö"
Open$(7) = "╚════════════╝ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ÖÖÖÖÖÖÖÖÖÖÖÖÖÖ"
Open$(8) = STRING$(80, 32)
Open$(9) = STRING$(80, 32)
Open$(10) = "ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ ?????????????? ///////////// ##############"
Open$(11) = "Ç Ç ? ¿ / \ # #"
Open$(12) = "Ç Ç ? ¿ / \ # #"
Open$(13) = "Ç Ç ? ¿ / \ # #"
Open$(14) = "Ç Ç ? ¿ / \ # #"
Open$(15) = "Ç Ç ? ¿ / \ # #"
Open$(16) = "ÇÇÇÇÇÇÇÇÇÇÇÇÇÇ ¿¿¿¿¿¿¿¿¿¿¿¿¿¿ \\\\\\\\\\\\\\\ ##############"
FOR SET = 1 TO 16
LOCATE SET + 4, 8: PRINT Open$(SET)
NEXT
LOCATE 5, 42: PRINT STRING$(14, 15)
FOR BOX = 3 TO 7
LOCATE BOX + 3, 42: PRINT CHR$(15); SPACE$(12); CHR$(15)
NEXT
LOCATE 11, 42: PRINT STRING$(14, 15)
LOCATE 8, 11: COLOR 0, 15: PRINT " BOX A "
LOCATE 8, 28: PRINT " BOX B "
LOCATE 8, 45: PRINT " BOX C "
LOCATE 8, 62: PRINT " BOX D "
LOCATE 17, 11: PRINT " BOX E "
LOCATE 17, 28: PRINT " BOX F "
LOCATE 17, 45: PRINT " BOX G "
LOCATE 17, 62: PRINT " BOX H ": COLOR 15, 0
LOCATE 23, 20: COLOR 15, 0: PRINT "CHOOSE A BOX BY PRESSING ITS LETTER": COLOR 10, 0
DO: Choice$ = INKEY$
LOOP WHILE Choice$ = ""
Choice$ = UCASE$(Choice$)
LOCATE 23, 20: PRINT SPACE$(60)
LOCATE 23, 30: COLOR 0, 15: PRINT " BOX "; UCASE$(Choice$); " CHOSEN ": COLOR 15, 0
SELECT CASE ASC(Choice$)
CASE 65: Save1
CASE 66: Save2
CASE 67: Save3
CASE 68: Save4
CASE 69: Save5
CASE 70: Save6
CASE 71: Save7
CASE 72: Save8
CASE ELSE
LOCATE 23, 20: PRINT SPACE$(60)
LOCATE 23, 20: COLOR 0, 15: PRINT " NOT A LETTER FROM A TO H -- TRY AGAIN ": COLOR 15, 0
SLEEP 5
GOTO Top
END SELECT
END SUB
SUB Directions
CLS
DIM AD$(17)
LOCATE 2, 20: PRINT STRING$(40, 15)
FOR SIDE = 3 TO 21
LOCATE SIDE, 20: PRINT CHR$(15); SPACE$(38); CHR$(15)
NEXT
LOCATE 22, 20: PRINT STRING$(40, 15)
AD$(1) = " Thanks for using MENUMAN"
AD$(2) = STRING$(35, 32)
AD$(3) = "If MENUMAN has been useful to you,"
AD$(4) = "please send $10 in check or money"
AD$(5) = "order to this address:"
AD$(6) = " Carmen Paone"
AD$(7) = " 1525 Locust St."
AD$(8) = " Reading, Pa."
AD$(9) = " 19604"
AD$(10) = STRING$(35, 32)
AD$(11) = "Please specify the size disk _ "
AD$(12) = "5.25 or 3.5 _ you would like."
AD$(13) = "Registered users of MENUMAN"
AD$(14) = "will receive updates free"
AD$(15) = "of charge. Planned updates:"
AD$(16) = "bounce-bar menus, Lotus-type"
AD$(17) = "menus, F-Key menus and others."
FOR SET = 1 TO 17
LOCATE SET + 3, 23: COLOR 15, 0: PRINT AD$(SET): COLOR 7, 0
NEXT
SLEEP 30
CLS
SYSTEM
END SUB
SUB Disksave
OPEN "TESTMENU.BAS" FOR APPEND AS #1
END SUB
SUB Killer
ON ERROR GOTO Handler
KILL "TESTMENU.BAS"
LOCATE 15, 27: COLOR 0, 15: PRINT " TESTMENU.BAS KILLED ": COLOR 15, 0
SLEEP 10
Boxstuff
END SUB
SUB Labeler
CLS
LOCATE 3, 20: PRINT "TITLE FOR MENU (20 CHARACTERS)"
LOCATE 5, 39: COLOR 0, 15: PRINT " LIMIT ": COLOR 15, 0
LOCATE 5, 20: LINE INPUT ""; title$
Disksave
PRINT #1, "I = (62 - LEN(title$)) / 2"
PRINT #1, "LOCATE 4, 22: COLOR 15, 0: PRINT TAB(I);"; CHR$(34); title$; CHR$(34); ": COLOR 7, 0"
CLOSE #1
Menulines
END SUB
SUB Lines1
DIM item$(2)
TopLine
LOCATE 11, 20: LINE INPUT " ≤ 1 ≥ "; item$(1)
LOCATE 12, 20: LINE INPUT " ≤ 2 ≥ "; item$(2)
Disksave
PRINT #1, "DIM Menu$(2)"
PRINT #1, "Menu$(1) = "; CHR$(34); "≤ 1 ≥ "; item$(1); CHR$(34)
PRINT #1, "Menu$(2) = "; CHR$(34); "≤ 2 ≥ "; item$(2); CHR$(34)
PRINT #1, "X = (56 - LEN(Menu$)) / 2"
PRINT #1, "FOR SET = 1 TO 2"
PRINT #1, "LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB(X); Menu$(SET): COLOR 7, 0"
PRINT #1, "NEXT"
NumberDo
FOR number% = 1 TO 2
PRINT #1, "CASE "; CHR$(34); LTRIM$(STR$(number%)); CHR$(34); ":"
NEXT
PRINT #1, "END SELECT"
CLOSE #1
Opener
END SUB
SUB Lines2
DIM item$(3)
TopLine
LOCATE 11, 20: LINE INPUT " ≤ 1 ≥ "; item$(1)
LOCATE 12, 20: LINE INPUT " ≤ 2 ≥ "; item$(2)
LOCATE 13, 20: LINE INPUT " ≤ 3 ≥ "; item$(3)
Disksave
PRINT #1, "DIM Menu$(3)"
PRINT #1, "Menu$(1) = "; CHR$(34); "≤ 1 ≥ "; item$(1); CHR$(34)
PRINT #1, "Menu$(2) = "; CHR$(34); "≤ 2 ≥ "; item$(2); CHR$(34)
PRINT #1, "Menu$(3) = "; CHR$(34); "≤ 3 ≥ "; item$(3); CHR$(34)
PRINT #1, "X = (56 - LEN(Menu$)) / 2"
PRINT #1, "FOR SET = 1 TO 3"
PRINT #1, "LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB (X); Menu$(SET): COLOR 7, 0"
PRINT #1, "NEXT"
NumberDo
FOR number% = 1 TO 3
PRINT #1, "CASE "; CHR$(34); LTRIM$(STR$(number%)); CHR$(34); ":"
NEXT
PRINT #1, "END SELECT"
CLOSE #1
Opener
END SUB
SUB Lines3
DIM item$(4)
TopLine
LOCATE 11, 20: LINE INPUT " ≤ 1 ≥ "; item$(1)
LOCATE 12, 20: LINE INPUT " ≤ 2 ≥ "; item$(2)
LOCATE 13, 20: LINE INPUT " ≤ 3 ≥ "; item$(3)
LOCATE 14, 20: LINE INPUT " ≤ 4 ≥ "; item$(4)
Disksave
PRINT #1, "DIM Menu$(4)"
PRINT #1, "Menu$(1) = "; CHR$(34); "≤ 1 ≥ "; item$(1); CHR$(34)
PRINT #1, "Menu$(2) = "; CHR$(34); "≤ 2 ≥ "; item$(2); CHR$(34)
PRINT #1, "Menu$(3) = "; CHR$(34); "≤ 3 ≥ "; item$(3); CHR$(34)
PRINT #1, "Menu$(4) = "; CHR$(34); "≤ 4 ≥ "; item$(4); CHR$(34)
PRINT #1, "X = (56 - LEN(Menu$)) / 2"
PRINT #1, "FOR SET = 1 TO 4"
PRINT #1, "LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB(X); Menu$(SET): COLOR 7, 0"
PRINT #1, "NEXT"
NumberDo
FOR number% = 1 TO 4
PRINT #1, "CASE "; CHR$(34); LTRIM$(STR$(number%)); CHR$(34); ":"
NEXT
PRINT #1, "END SELECT"
CLOSE #1
Opener
END SUB
SUB Lines4
DIM item$(5)
TopLine
LOCATE 11, 20: LINE INPUT " ≤ 1 ≥ "; item$(1)
LOCATE 12, 20: LINE INPUT " ≤ 2 ≥ "; item$(2)
LOCATE 13, 20: LINE INPUT " ≤ 3 ≥ "; item$(3)
LOCATE 14, 20: LINE INPUT " ≤ 4 ≥ "; item$(4)
LOCATE 15, 20: LINE INPUT " ≤ 5 ≥ "; item$(5)
Disksave
PRINT #1, "DIM Menu$(5)"
PRINT #1, "Menu$(1) = "; CHR$(34); "≤ 1 ≥ "; item$(1); CHR$(34)
PRINT #1, "Menu$(2) = "; CHR$(34); "≤ 2 ≥ "; item$(2); CHR$(34)
PRINT #1, "Menu$(3) = "; CHR$(34); "≤ 3 ≥ "; item$(3); CHR$(34)
PRINT #1, "Menu$(4) = "; CHR$(34); "≤ 4 ≥ "; item$(4); CHR$(34)
PRINT #1, "Menu$(5) = "; CHR$(34); "≤ 5 ≥ "; item$(5); CHR$(34)
PRINT #1, "X = (56 - LEN(Menu$)) / 2"
PRINT #1, "FOR SET = 1 TO 5"
PRINT #1, "LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB(X); Menu$(SET): COLOR 7, 0"
PRINT #1, "NEXT"
NumberDo
FOR number% = 1 TO 5
PRINT #1, "CASE "; CHR$(34); LTRIM$(STR$(number%)); CHR$(34); ":"
NEXT
PRINT #1, "END SELECT"
CLOSE #1
Opener
END SUB
SUB Lines5
DIM item$(6)
TopLine
LOCATE 11, 20: LINE INPUT " ≤ 1 ≥ "; item$(1)
LOCATE 12, 20: LINE INPUT " ≤ 2 ≥ "; item$(2)
LOCATE 13, 20: LINE INPUT " ≤ 3 ≥ "; item$(3)
LOCATE 14, 20: LINE INPUT " ≤ 4 ≥ "; item$(4)
LOCATE 15, 20: LINE INPUT " ≤ 5 ≥ "; item$(5)
LOCATE 16, 20: LINE INPUT " ≤ 6 ≥ "; item$(6)
Disksave
PRINT #1, "DIM Menu$(6)"
PRINT #1, "Menu$(1) = "; CHR$(34); "≤ 1 ≥ "; item$(1); CHR$(34)
PRINT #1, "Menu$(2) = "; CHR$(34); "≤ 2 ≥ "; item$(2); CHR$(34)
PRINT #1, "Menu$(3) = "; CHR$(34); "≤ 3 ≥ "; item$(3); CHR$(34)
PRINT #1, "Menu$(4) = "; CHR$(34); "≤ 4 ≥ "; item$(4); CHR$(34)
PRINT #1, "Menu$(5) = "; CHR$(34); "≤ 5 ≥ "; item$(5); CHR$(34)
PRINT #1, "Menu$(6) = "; CHR$(34); "≤ 6 ≥ "; item$(6); CHR$(34)
PRINT #1, "X = (56 - LEN(Menu$)) / 2"
PRINT #1, "FOR SET = 1 TO 6"
PRINT #1, "LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB(X); Menu$(SET): COLOR 7, 0"
PRINT #1, "NEXT"
NumberDo
FOR number% = 1 TO 6
PRINT #1, "CASE "; CHR$(34); LTRIM$(STR$(number%)); CHR$(34); ":"
NEXT
PRINT #1, "END SELECT"
CLOSE #1
Opener
END SUB
SUB Lines6
DIM item$(7)
TopLine
LOCATE 11, 20: LINE INPUT " ≤ 1 ≥ "; item$(1)
LOCATE 12, 20: LINE INPUT " ≤ 2 ≥ "; item$(2)
LOCATE 13, 20: LINE INPUT " ≤ 3 ≥ "; item$(3)
LOCATE 14, 20: LINE INPUT " ≤ 4 ≥ "; item$(4)
LOCATE 15, 20: LINE INPUT " ≤ 5 ≥ "; item$(5)
LOCATE 16, 20: LINE INPUT " ≤ 6 ≥ "; item$(6)
LOCATE 17, 20: LINE INPUT " ≤ 7 ≥ "; item$(7)
Disksave
PRINT #1, "DIM Menu$(7)"
PRINT #1, "Menu$(1) = "; CHR$(34); "≤ 1 ≥ "; item$(1); CHR$(34)
PRINT #1, "Menu$(2) = "; CHR$(34); "≤ 2 ≥ "; item$(2); CHR$(34)
PRINT #1, "Menu$(3) = "; CHR$(34); "≤ 3 ≥ "; item$(3); CHR$(34)
PRINT #1, "Menu$(4) = "; CHR$(34); "≤ 4 ≥ "; item$(4); CHR$(34)
PRINT #1, "Menu$(5) = "; CHR$(34); "≤ 5 ≥ "; item$(5); CHR$(34)
PRINT #1, "Menu$(6) = "; CHR$(34); "≤ 6 ≥ "; item$(6); CHR$(34)
PRINT #1, "Menu$(7) = "; CHR$(34); "≤ 7 ≥ "; item$(7); CHR$(34)
PRINT #1, "X = (56 - LEN(Menu$)) / 2"
PRINT #1, "FOR SET = 1 TO 7"
PRINT #1, "LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB(X); Menu$(SET): COLOR 7, 0"
PRINT #1, "NEXT"
NumberDo
FOR number% = 1 TO 7
PRINT #1, "CASE "; CHR$(34); LTRIM$(STR$(number%)); CHR$(34); ":"
NEXT
PRINT #1, "END SELECT"
CLOSE #1
Opener
END SUB
SUB Lines7
DIM item$(8)
TopLine
LOCATE 11, 20: LINE INPUT " ≤ 1 ≥ "; item$(1)
LOCATE 12, 20: LINE INPUT " ≤ 2 ≥ "; item$(2)
LOCATE 13, 20: LINE INPUT " ≤ 3 ≥ "; item$(3)
LOCATE 14, 20: LINE INPUT " ≤ 4 ≥ "; item$(4)
LOCATE 15, 20: LINE INPUT " ≤ 5 ≥ "; item$(5)
LOCATE 16, 20: LINE INPUT " ≤ 6 ≥ "; item$(6)
LOCATE 17, 20: LINE INPUT " ≤ 7 ≥ "; item$(7)
LOCATE 18, 20: LINE INPUT " ≤ 8 ≥ "; item$(8)
Disksave
PRINT #1, "DIM Menu$(8)"
PRINT #1, "Menu$(1) = "; CHR$(34); "≤ 1 ≥ "; item$(1); CHR$(34)
PRINT #1, "Menu$(2) = "; CHR$(34); "≤ 2 ≥ "; item$(2); CHR$(34)
PRINT #1, "Menu$(3) = "; CHR$(34); "≤ 3 ≥ "; item$(3); CHR$(34)
PRINT #1, "Menu$(4) = "; CHR$(34); "≤ 4 ≥ "; item$(4); CHR$(34)
PRINT #1, "Menu$(5) = "; CHR$(34); "≤ 5 ≥ "; item$(5); CHR$(34)
PRINT #1, "Menu$(6) = "; CHR$(34); "≤ 6 ≥ "; item$(6); CHR$(34)
PRINT #1, "Menu$(7) = "; CHR$(34); "≤ 7 ≥ "; item$(7); CHR$(34)
PRINT #1, "Menu$(8) = "; CHR$(34); "≤ 8 ≥ "; item$(8); CHR$(34)
PRINT #1, "X = (56 - LEN(Menu$)) / 2"
PRINT #1, "FOR SET = 1 TO 8"
PRINT #1, "LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB(X); Menu$(SET): COLOR 7, 0"
PRINT #1, "NEXT"
NumberDo
FOR number% = 1 TO 8
PRINT #1, "CASE "; CHR$(34); LTRIM$(STR$(number%)); CHR$(34); ":"
NEXT
PRINT #1, "END SELECT"
CLOSE #1
Opener
END SUB
SUB Lines8
DIM item$(9)
TopLine
LOCATE 11, 20: LINE INPUT " ≤ 1 ≥ "; item$(1)
LOCATE 12, 20: LINE INPUT " ≤ 2 ≥ "; item$(2)
LOCATE 13, 20: LINE INPUT " ≤ 3 ≥ "; item$(3)
LOCATE 14, 20: LINE INPUT " ≤ 4 ≥ "; item$(4)
LOCATE 15, 20: LINE INPUT " ≤ 5 ≥ "; item$(5)
LOCATE 16, 20: LINE INPUT " ≤ 6 ≥ "; item$(6)
LOCATE 17, 20: LINE INPUT " ≤ 7 ≥ "; item$(7)
LOCATE 18, 20: LINE INPUT " ≤ 8 ≥ "; item$(8)
LOCATE 19, 20: LINE INPUT " ≤ 9 ≥ "; item$(9)
Disksave
PRINT #1, "DIM Menu$(9)"
PRINT #1, "Menu$(1) = "; CHR$(34); "≤ 1 ≥ "; item$(1); CHR$(34)
PRINT #1, "Menu$(2) = "; CHR$(34); "≤ 2 ≥ "; item$(2); CHR$(34)
PRINT #1, "Menu$(3) = "; CHR$(34); "≤ 3 ≥ "; item$(3); CHR$(34)
PRINT #1, "Menu$(4) = "; CHR$(34); "≤ 4 ≥ "; item$(4); CHR$(34)
PRINT #1, "Menu$(5) = "; CHR$(34); "≤ 5 ≥ "; item$(5); CHR$(34)
PRINT #1, "Menu$(6) = "; CHR$(34); "≤ 6 ≥ "; item$(6); CHR$(34)
PRINT #1, "Menu$(7) = "; CHR$(34); "≤ 7 ≥ "; item$(7); CHR$(34)
PRINT #1, "Menu$(8) = "; CHR$(34); "≤ 8 ≥ "; item$(8); CHR$(34)
PRINT #1, "Menu$(9) = "; CHR$(34); "≤ 9 ≥ "; item$(9); CHR$(34)
PRINT #1, "X = (56 - LEN(Menu$)) / 2"
PRINT #1, "FOR SET = 1 TO 9"
PRINT #1, "LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB(X); Menu$(SET): COLOR 7, 0"
PRINT #1, "NEXT"
NumberDo
FOR number% = 1 TO 9
PRINT #1, "CASE "; CHR$(34); LTRIM$(STR$(number%)); CHR$(34); ":"
NEXT
PRINT #1, "END SELECT"
CLOSE #1
Opener
END SUB
SUB Menulines
LOCATE 7, 20: INPUT "HOW MANY MENU ITEMS (LIMIT: 2 TO 9) "; menuitem$
IF menuitem$ = "2" THEN
Lines1
ELSEIF menuitem$ = "3" THEN
Lines2
ELSEIF menuitem$ = "4" THEN
Lines3
ELSEIF menuitem$ = "5" THEN
Lines4
ELSEIF menuitem$ = "6" THEN
Lines5
ELSEIF menuitem$ = "7" THEN
Lines6
ELSEIF menuitem$ = "9" THEN
Lines8
END IF
END SUB
SUB Namer
CLS
ON ERROR GOTO Handler
LOCATE 10, 20: LINE INPUT "NEW NAME FOR TESTMENU.BAS: "; Newname$
NAME "TESTMENU.BAS" AS Newname$
LOCATE 12, 20: PRINT " TESTMENU.BAS RENAMED AS "; Newname$
SLEEP 10
Opener
END SUB
SUB NumberDo
LOCATE 21, 20: LINE INPUT "NUMBER OF MENU ITEMS AGAIN, PLEASE "; menuitem$
IF menuitem$ = "2" THEN
X$ = "12"
ELSEIF menuitem$ = "3" THEN
X$ = "123"
ELSEIF menuitem$ = "4" THEN
X$ = "1234"
ELSEIF menuitem$ = "5" THEN
X$ = "12345"
ELSEIF menuitem$ = "6" THEN
X$ = "123456"
ELSEIF menuitem$ = "7" THEN
X$ = "1234567"
ELSEIF menuitem$ = "8" THEN
X$ = "12345678"
ELSEIF menuitem$ = "9" THEN
X$ = "123456789"
END IF
PRINT #1, "DO: opt$ = Input$(1)"
PRINT #1, "LOOP WHILE INSTR("; CHR$(34); X$; CHR$(34); ", opt$) = 0"
PRINT #1, "SELECT CASE opt$"
END SUB
SUB Opener
CLS
LOCATE 2, 20: PRINT STRING$(40, 15)
FOR SIDE = 3 TO 21
LOCATE SIDE, 20: PRINT CHR$(15); SPACE$(38); CHR$(15)
NEXT
LOCATE 22, 20: PRINT STRING$(40, 15)
I = (62 - LEN(title$)) / 2
LOCATE 4, 22: COLOR 15, 0: PRINT TAB(I); "MENUMAN OPTIONS": COLOR 7, 0
DIM Menu$(4)
Menu$(1) = "≤ 1 ≥ KILL TESTMENU.BAS"
Menu$(2) = "≤ 2 ≥ RENAME TESTMENU.BAS"
Menu$(3) = "≤ 3 ≥ CONTINUE MENUMAN"
Menu$(4) = "≤ 4 ≥ EXIT MENUMAN"
X = (56 - LEN(Menu$)) / 2
FOR SET = 1 TO 4
LOCATE SET + 8, 22: COLOR 15, 0: PRINT TAB(X); Menu$(SET): COLOR 7, 0
NEXT
DO: opt$ = INPUT$(1)
LOOP WHILE INSTR("1234", opt$) = 0
SELECT CASE opt$
CASE "1": Killer
CASE "2": Namer
CASE "3": Boxstuff
CASE "4": Directions
END SELECT
END SUB
SUB Save1
Disksave
PRINT #1, "CLS"
PRINT #1, "LOCATE 2, 20: PRINT CHR$(201); STRING$(38, 205); CHR$(187)"
PRINT #1, "FOR SIDE = 3 TO 21"
PRINT #1, "LOCATE SIDE, 20: PRINT CHR$(186); SPACE$(38); CHR$(186)"
PRINT #1, "NEXT"
PRINT #1, "LOCATE 22, 20: PRINT CHR$(200); STRING$(38, 205); CHR$(188)"
CLOSE #1
Labeler
END SUB
SUB Save2
Disksave
PRINT #1, "CLS"
PRINT #1, "LOCATE 2, 20: PRINT STRING$(40, 220)"
PRINT #1, "FOR SIDE = 3 TO 21"
PRINT #1, "LOCATE SIDE, 20: PRINT CHR$(219); SPACE$(38); CHR$(219)"
PRINT #1, "NEXT"
PRINT #1, "LOCATE 22, 20: PRINT STRING$(40, 223)"
CLOSE #1
Labeler
END SUB
SUB Save3
Disksave
PRINT #1, "CLS"
PRINT #1, "LOCATE 2, 20: PRINT STRING$(40, 15)"
PRINT #1, "FOR SIDE = 3 TO 21"
PRINT #1, "LOCATE SIDE, 20: PRINT CHR$(15); SPACE$(38); CHR$(15)"
PRINT #1, "NEXT"
PRINT #1, "LOCATE 22, 20: PRINT STRING$(40, 15)"
CLOSE #1
Labeler
END SUB
SUB Save4
Disksave
PRINT #1, "CLS"
PRINT #1, "LOCATE 2, 20: PRINT STRING$(40, 153)"
PRINT #1, "FOR SIDE = 3 TO 21"
PRINT #1, "LOCATE SIDE, 20: PRINT CHR$(153); SPACE$(38); CHR$(153)"
PRINT #1, "NEXT"
PRINT #1, "LOCATE 22, 20: PRINT STRING$(40, 153)"
CLOSE #1
Labeler
END SUB
SUB Save5
Disksave
PRINT #1, "CLS"
PRINT #1, "LOCATE 2, 20: PRINT STRING$(40, 128)"
PRINT #1, "FOR SIDE = 3 TO 21"
PRINT #1, "LOCATE SIDE, 20: PRINT CHR$(128); SPACE$(38); CHR$(128)"
PRINT #1, "NEXT"
PRINT #1, "LOCATE 22, 20: PRINT STRING$(40, 128)"
CLOSE #1
Labeler
END SUB
SUB Save6
Disksave
PRINT #1, "CLS"
PRINT #1, "LOCATE 2, 20: PRINT STRING$(40, 63)"
PRINT #1, "FOR SIDE = 3 TO 21"
PRINT #1, "LOCATE SIDE, 20: PRINT CHR$(63); SPACE$(38); CHR$(168)"
PRINT #1, "NEXT"
PRINT #1, "LOCATE 22, 20: PRINT STRING$(40, 168)"
CLOSE #1
Labeler
END SUB
SUB Save7
Disksave
PRINT #1, "CLS"
PRINT #1, "LOCATE 2, 20: PRINT STRING$(40, 47)"
PRINT #1, "FOR SIDE = 3 TO 21"
PRINT #1, "LOCATE SIDE, 20: PRINT CHR$(92); SPACE$(38); CHR$(47)"
PRINT #1, "NEXT"
PRINT #1, "LOCATE 22, 20: PRINT STRING$(40, 92)"
CLOSE #1
Labeler
END SUB
SUB Save8
Disksave
PRINT #1, "CLS"
PRINT #1, "LOCATE 2, 20: PRINT STRING$(40, 35)"
PRINT #1, "FOR SIDE = 3 TO 21"
PRINT #1, "LOCATE SIDE, 20: PRINT CHR$(35); SPACE$(38); CHR$(35)"
PRINT #1, "NEXT"
PRINT #1, "LOCATE 22, 20: PRINT STRING$(40, 35)"
CLOSE #1
Labeler
END SUB
SUB TopLine
LOCATE 9, 20: COLOR 0, 15: PRINT " ITEM # YOUR ENTRY BOX EDGE ": COLOR 15, 0
END SUB